const state = {
  userInfo: {
    id: '',
    name: 'zhangSan',
    age: '',
    avatar: ''
  }
}
const mutations = {}
const actions = {}
const getters = {
  upperCaseName (state) {
    return state.userInfo.name.toUpperCase()
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
